d21dbd655aed22575dda7e4e94a87963ec6f2889,pac4j-cas/src/test/java/org/pac4j/cas/authorization/DefaultCasAuthorizationGeneratorTests.java,DefaultCasAuthorizationGeneratorTests,testBadAttributeValue,#,31
Before Change
AuthorizationGenerator<CommonProfile> generator = new DefaultCasAuthorizationGenerator<CommonProfile>();
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put(DefaultCasAuthorizationGenerator.DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME, "yes");
CommonProfile profile = (CommonProfile) ProfileHelper.buildProfile("CasProfile#id", attributes);
generator.generate(profile);
assertEquals(false, profile.isRemembered());
}
After Change
AuthorizationGenerator<CommonProfile> generator = new DefaultCasAuthorizationGenerator<>();
Map<String, Object> attributes = new HashMap<>();
attributes.put(DefaultCasAuthorizationGenerator.DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME, "yes");
CommonProfile profile = ProfileHelper.buildProfile("org.pac4j.cas.profile.CasProfile#id", attributes);
generator.generate(profile);
assertEquals(false, profile.isRemembered());
}